package com.guandi.geekbrowser.primary.service;

import com.guandi.geekbrowser.primary.entity.Tab;

import java.util.List;
import java.util.Optional;

public interface TabService {

    List<Tab> findAll();

    List<Tab> findByName(String name);

    Tab findByUserIdAndName(String id,String name);

    void saveTab(Tab tab);

    List<Tab> findByUserId(String id);

    List<Tab> findByUserIdAndDel(String id,Boolean del);

    List<Tab> findByUserIdAndDelAndId(String id,Boolean del,Long did);

    List<Tab> findByUserIdAndDelAndCountry(String id,Boolean del,String country);

    void deleteByUserIdAndName(String id, String name);

    void deleteSafe(Tab tab);

    Optional<Tab> findById(Long id);

    Tab findByUserIdAndNameAndCountry(String id,String name,String country);

    List<Tab> findByUserIdAndCountry(String id,String country);

    void deleteByUserIdAndNameAndCountry(String id, String name,String country);

    List<Tab> findByUserIdAndCountryAndType(String id,String country,Integer type);
}


